import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import DashBoard from '@/components/DashBoard';
import TeacherLie from '@/components/teachermenu/TeacherLie'
import TeacherShen from '@/components/teachermenu/TeacherShen'
 // import CourseOrder from '@/components/order/CourseOrder'

import userment from '@/components/roles/userment'
import roles from '@/components/roles/roles'
import meun from '@/components/roles/menu'
import Audit from '@/components/course/Audit'
import Classify from '@/components/course/Classify'
import Courses from '@/components/course/Courses'
import curriculumcenter from '@/components/course/CourseDetails/curriculumcenter'


import PersonalCenter from '@/components/personalcenter/PersonalCenter'
//import HongBao from '@/components/HongBao'
// import MyClass from '@/components/MyClass'
import MyCollection from '@/components/personalcenter/MyCollection'
//import LearningRecord from '@/components/LearningRecord'
import LecturerInfo from '@/components/personalcenter/LecturerInfo'
import LuboCourse from '@/components/personalcenter/LuboCourse'
import EditCourse from '@/components/personalcenter/kecheng'
import EditCourseDetail from '@/components/personalcenter/EditCourseDetail'
import AddCourse from '@/components/personalcenter/AddCourse'
import ChapterManager from '@/components/personalcenter/ChapterManager'
import ClassHour from '@/components/personalcenter/ClassHour'
import Check from '@/components/personalcenter/Check'
import Profit from '@/components/personalcenter/profit'
import MyCourse from '@/components/personalcenter/MyCourse'
//import TestAll from '@/components/TestAll'
import StudyRecord from '@/components/personalcenter/StudyRecord'
import DUpdate from '@/components/personalcenter/DUpdate'
import DBasicInformation from '@/components/personalcenter/DBasicInformation'
import Order from '@/components/personalcenter/Order'
import Attention from '@/components/personalcenter/Attention'
import Message from '@/components/personalcenter/Message'
import Teachercenter from '@/components/personalcenter/teachercenter'
import logincenter from '@/components/login-front/logincenter'

import navBar from '@/components/navBar/index'
import adv from '@/components/adv/index'
import zone from '@/components/zone/index'
import zonecourse from '@/components/zonecourse/index'
import frontindex from '@/components/frontindex/index'
import terraceId from "../components/frontindex/terraceId"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },{
      path:"/index",
      name:"DashBoard",
      component:DashBoard,
      children:[
      //   {
      //   path:"/courseorder",
      //   component:CourseOrder
      // },
        {
        path:"/userment",
        component:userment
      },{
        path:"/roles",
        component:roles
      },{
        path:"/meun",
        component:meun
      },{
        path:"/Audit",
        component:Audit
      },{
        path:"/Classify",
        component:Classify
      },{
        path:"/Courses",
        component:Courses
      },{
          path:"/navBar",
          name:"navBar",
          component:navBar
        },{
          path:"/adv",
          name:"adv",
          component:adv
        },{
          path:"/zone",
          name:"zone",
          component:zone
        },{
          path:"/zonecourse",
          name:"zonecourse",
          component:zonecourse
        }
      ]
    },{
      path:"/TeacherLie",
      name:"TeacherLie",
      component:TeacherLie
    },
    {
      path:"/TeacherShen",
      component:TeacherShen
    },{
      path:"/userment",
      component:userment,
    },{
      path:"/curriculumcenter",
      component:curriculumcenter
    },
    // {
    //   path:"/profit",
    //   component:Profit
    // },
    //personalCenter
    {
      path:'/personalCenter',
      name: 'PersonalCenter',
      component: PersonalCenter,
      children:[
        {
          path: '/hello',
          name: 'HelloWorld',
          component: HelloWorld
        },
        {
          path: '/myCourse',
          name: 'MyCourse',
          component: MyCourse
        },
        {
          path: '/myCollection',
          name: 'MyCollection',
          component: MyCollection
        },
        // {
        //   path: '/learningRecord',
        //   name: 'LearningRecord',
        //   component: LearningRecord
        // },
        {
          path: '/check',
          name: 'Check',
          component: Check
        },
        {
          path: '/lecturerInfo',
          name: 'LecturerInfo',
          component: LecturerInfo
        },
        {
          path: '/luboCourse',
          name: 'LuboCourse',
          component: LuboCourse
        },
        {
          path: '/editCourse',
          name: 'EditCourse',
          component: EditCourse
        },
        {
          path: '/editCourseDetail',
          name: 'EditCourseDetail',
          component: EditCourseDetail
        },
        {
          path: '/addCourse',
          name: 'AddCourse',
          component: EditCourse
        },
        {
          path: '/chapterManager',
          name: 'ChapterManager',
          component: ChapterManager
        },
        {
          path: '/classHour',
          name: 'ClassHour',
          component: ClassHour
        },
        {
          path: '/profit',
          name: 'Profit',
          component: Profit
        },
        // {
        //   path: '/testAll',
        //   name: 'TestAll',
        //   component: TestAll
        // },
        {
          path: '/studyRecord',
          name: 'StudyRecord',
          component: StudyRecord
        },
        {
          path: '/dUpdate',
          name: 'DUpdate',
          component: DUpdate
        },
        {
          path: '/dBasicInformation',
          name: 'DBasicInformation',
          component: DBasicInformation
        },
        {
          path: '/myOrder',
          name: 'Order',
          component: Order
        },
        {
          path: '/attention',
          name: 'Attention',
          component: Attention
        }
        ,
        {
          path: '/message',
          name: 'Message',
          component: Message
        }
      ]
    },
    // Teachercenter
    {
      path: '/teachercenter',
      name: 'Teachercenter',
      component: Teachercenter
    },
    {
      path:"/logincenter",
      component:logincenter

  },{
      path:"/frontindex",
      name:"frontindex",
      component:frontindex
    },{
      path:"/terrace",
      name:"frontindex",
      component:terraceId
    }

  ]
})
